package com.cxyzy.tools.cq

class CountQueueItem<T> {
    var item: T? = null
    var count: Int = 0

    constructor(item: T) {
        CountQueueItem(item, 1)
    }

    constructor(item: T, count: Int) {
        this.item = item
        this.count = count
    }

    fun reduceCount() {
        count--
    }
}
